\documentclass[tikz]{standalone}

\usepackage{fontspec}
\setmainfont[Ligatures=TeX, Mapping=tex-text]{Lato}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\usepackage{xfp}

\begin{document}
\begin{tikzpicture}

\def\width{5}
\def\height{5}
\def\ox{\fpeval{\width /2}}
\def\oy{\fpeval{\height /2}}

\tiny
\path [use as bounding box] (0,0) rectangle (\width,\height);

% SHAPE
\filldraw [line width=0.5pt, fill=orange] (\ox,\oy)
	+(-1,-1) node[draw, fill=black, circle, inner sep=1pt] {} node[below left] {5} --
	+(0.5,-1) node[draw, fill=black, circle, inner sep=1pt] {} node[below right] {4} --
	+(0.5,-0.5) node[draw, fill=black, circle, inner sep=1pt] {} node[above left] {3} --
	+(1,-0.5) node[draw, fill=black, circle, inner sep=1pt] {} node[below right] {2} --
	+(1,1) node[draw, fill=black, circle, inner sep=1pt] {} node[above right] {1} --
	+(-1,1) node[draw, fill=black, circle, inner sep=1pt] {} node[above left] {0} --
	cycle;

% PORTS
\draw [line width=2pt] (\ox,\oy) ++(-1,0) +(0,-1) -- +(0,1);
\draw [line width=2pt] (\ox,\oy) ++(0,1) +(-1,0) -- +(1,0);
\draw [line width=2pt] (\ox,\oy) ++(1,0) +(0,-0.5) -- +(0,0.5);
\draw [line width=2pt] (\ox,\oy) ++(0,-1) +(-0.5,0) -- +(0.5,0);

% MESH
\draw [line width=0.5pt] (\ox,\oy) ++(0,-1) +(-2,0) -- +(2,0);
\draw [line width=0.5pt] (\ox,\oy) ++(0,1) +(-2,0) -- +(2,0);
\draw [line width=0.5pt] (\ox,\oy) ++(-1,0) +(0,-1.5) -- +(0,2);
\draw [line width=0.5pt] (\ox,\oy) ++(1,0) +(0,-1.5) -- +(0,2);
\draw [line width=0.5pt] (\ox,\oy) ++(0.5,0) +(0,-1.5) -- +(0,2);
\draw [line width=0.5pt] (\ox,\oy) ++(0,-0.5) +(-2,0) -- +(2,0);
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(-1,0) -- +(-2.5pt,0) node[left] {I1};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(0,1) -- +(0,2.5pt) node[above] {I2};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(1,0) -- +(2.5pt,0) node[right] {I3};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(0,-1) -- +(0,-2.5pt) node[below] {I4};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(0.75,-0.5) -- +(0,-2.5pt) node[above=5pt] {C0};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(0.5,-0.75) -- +(2.5pt,0) node[left=5pt] {C1};

% CONDITION
\draw (\ox,\oy) ++(0,-2) node {\footnotesize\textbf{W1 > W3 \&\& W2 > W4}};

\end{tikzpicture}
\begin{tikzpicture}

\def\width{5}
\def\height{5}
\def\ox{\fpeval{\width /2}}
\def\oy{\fpeval{\height /2}}

\tiny
\path [use as bounding box] (0,0) rectangle (\width,\height);

% SHAPE
\filldraw [line width=0.5pt, fill=orange] (\ox,\oy)
	+(-1,-1) node[draw, fill=black, circle, inner sep=1pt] {} node[below left] {5} --
	+(1,-1) node[draw, fill=black, circle, inner sep=1pt] {} node[below right] {4} --
	+(1,0.5) node[draw, fill=black, circle, inner sep=1pt] {} node[above right] {3} --
	+(0.5,0.5) node[draw, fill=black, circle, inner sep=1pt] {} node[below left] {2} --
	+(0.5,1) node[draw, fill=black, circle, inner sep=1pt] {} node[above right] {1} --
	+(-1,1) node[draw, fill=black, circle, inner sep=1pt] {} node[above left] {0} --
	cycle;

% PORTS
\draw [line width=2pt] (\ox,\oy) ++(-1,0) +(0,-1) -- +(0,1);
\draw [line width=2pt] (\ox,\oy) ++(0,1) +(-0.5,0) -- +(0.5,0);
\draw [line width=2pt] (\ox,\oy) ++(1,0) +(0,-0.5) -- +(0,0.5);
\draw [line width=2pt] (\ox,\oy) ++(0,-1) +(-1,0) -- +(1,0);

% MESH
\draw [line width=0.5pt] (\ox,\oy) ++(0,-1) +(-2,0) -- +(2,0);
\draw [line width=0.5pt] (\ox,\oy) ++(0,1) +(-2,0) -- +(2,0);
\draw [line width=0.5pt] (\ox,\oy) ++(-1,0) +(0,-1.5) -- +(0,2);
\draw [line width=0.5pt] (\ox,\oy) ++(1,0) +(0,-1.5) -- +(0,2);
\draw [line width=0.5pt] (\ox,\oy) ++(0,0.5) +(-2,0) -- +(2,0);
\draw [line width=0.5pt] (\ox,\oy) ++(0.5,0) +(0,-1.5) -- +(0,2);
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(-1,0) -- +(-2.5pt,0) node[left] {I1};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(0,1) -- +(0,2.5pt) node[above] {I2};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(1,0) -- +(2.5pt,0) node[right] {I3};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(0,-1) -- +(0,-2.5pt) node[below] {I4};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(0.5,0.75) -- +(2.5pt,0) node[left=5pt] {C0};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(0.75,0.5) -- +(0,2.5pt) node[below=5pt] {C1};

% CONDITION
\draw (\ox,\oy) ++(0,-2) node {\footnotesize\textbf{W1 > W3 \&\& W2 < W4}};

\end{tikzpicture}
\begin{tikzpicture}

\def\width{5}
\def\height{5}
\def\ox{\fpeval{\width /2}}
\def\oy{\fpeval{\height /2}}

\tiny
\path [use as bounding box] (0,0) rectangle (\width,\height);

% SHAPE
\filldraw [line width=0.5pt, fill=orange] (\ox,\oy)
	+(-1,-1) node[draw, fill=black, circle, inner sep=1pt] {} node[below left] {5} --
	+(1,-1) node[draw, fill=black, circle, inner sep=1pt] {} node[below right] {4} --
	+(1,1) node[draw, fill=black, circle, inner sep=1pt] {} node[above right] {3} --
	+(-0.5,1) node[draw, fill=black, circle, inner sep=1pt] {} node[above left] {2} --
	+(-0.5,0.5) node[draw, fill=black, circle, inner sep=1pt] {} node[below right] {1} --
	+(-1,0.5) node[draw, fill=black, circle, inner sep=1pt] {} node[above left] {0} --
	cycle;

% PORTS
\draw [line width=2pt] (\ox,\oy) ++(-1,0) +(0,-0.5) -- +(0,0.5);
\draw [line width=2pt] (\ox,\oy) ++(0,1) +(-0.5,0) -- +(0.5,0);
\draw [line width=2pt] (\ox,\oy) ++(1,0) +(0,-1) -- +(0,1);
\draw [line width=2pt] (\ox,\oy) ++(0,-1) +(-1,0) -- +(1,0);

% MESH
\draw [line width=0.5pt] (\ox,\oy) ++(0,-1) +(-2,0) -- +(2,0);
\draw [line width=0.5pt] (\ox,\oy) ++(0,1) +(-2,0) -- +(2,0);
\draw [line width=0.5pt] (\ox,\oy) ++(-1,0) +(0,-1.5) -- +(0,2);
\draw [line width=0.5pt] (\ox,\oy) ++(1,0) +(0,-1.5) -- +(0,2);
\draw [line width=0.5pt] (\ox,\oy) ++(-0.5,0) +(0,-1.5) -- +(0,2);
\draw [line width=0.5pt] (\ox,\oy) ++(0,0.5) +(-2,0) -- +(2,0);
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(-1,0) -- +(-2.5pt,0) node[left] {I1};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(0,1) -- +(0,2.5pt) node[above] {I2};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(1,0) -- +(2.5pt,0) node[right] {I3};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(0,-1) -- +(0,-2.5pt) node[below] {I4};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(-0.75,0.5) -- +(0,2.5pt) node[below=5pt] {C0};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(-0.5,0.75) -- +(-2.5pt,0) node[right=5pt] {C1};

% CONDITION
\draw (\ox,\oy) ++(0,-2) node {\footnotesize\textbf{W1 < W3 \&\& W2 < W4}};

\end{tikzpicture}
\begin{tikzpicture}

\def\width{5}
\def\height{5}
\def\ox{\fpeval{\width /2}}
\def\oy{\fpeval{\height /2}}

\tiny
\path [use as bounding box] (0,0) rectangle (\width,\height);

% SHAPE
\filldraw [line width=0.5pt, fill=orange] (\ox,\oy)
	+(-0.5,-1) node[draw, fill=black, circle, inner sep=1pt] {} node[below left] {3} --
	+(1,-1) node[draw, fill=black, circle, inner sep=1pt] {} node[below right] {2} --
	+(1,1) node[draw, fill=black, circle, inner sep=1pt] {} node[above right] {1} --
	+(-1,1) node[draw, fill=black, circle, inner sep=1pt] {} node[above left] {0} --
	+(-1,-0.5) node[draw, fill=black, circle, inner sep=1pt] {} node[below left] {5} --
	+(-0.5,-0.5) node[draw, fill=black, circle, inner sep=1pt] {} node[above right] {4} --
	cycle;

% PORTS
\draw [line width=2pt] (\ox,\oy) ++(-1,0) +(0,-0.5) -- +(0,0.5);
\draw [line width=2pt] (\ox,\oy) ++(0,1) +(-1,0) -- +(1,0);
\draw [line width=2pt] (\ox,\oy) ++(1,0) +(0,-1) -- +(0,1);
\draw [line width=2pt] (\ox,\oy) ++(0,-1) +(-0.5,0) -- +(0.5,0);

% MESH
\draw [line width=0.5pt] (\ox,\oy) ++(0,-1) +(-2,0) -- +(2,0);
\draw [line width=0.5pt] (\ox,\oy) ++(0,1) +(-2,0) -- +(2,0);
\draw [line width=0.5pt] (\ox,\oy) ++(-1,0) +(0,-1.5) -- +(0,2);
\draw [line width=0.5pt] (\ox,\oy) ++(1,0) +(0,-1.5) -- +(0,2);
\draw [line width=0.5pt] (\ox,\oy) ++(0,-0.5) +(-2,0) -- +(2,0);
\draw [line width=0.5pt] (\ox,\oy) ++(-0.5,0) +(0,-1.5) -- +(0,2);
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(-1,0) -- +(-2.5pt,0) node[left] {I1};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(0,1) -- +(0,2.5pt) node[above] {I2};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(1,0) -- +(2.5pt,0) node[right] {I3};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(0,-1) -- +(0,-2.5pt) node[below] {I4};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(-0.5,-0.75) -- +(-2.5pt,0) node[right=5pt] {C0};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(-0.75,-0.5) -- +(0,-2.5pt) node[above=5pt] {C1};

% CONDITION
\draw (\ox,\oy) ++(0,-2) node {\footnotesize\textbf{W1 < W3 \&\& W2 > W4}};

\end{tikzpicture}
\begin{tikzpicture}

\def\width{5}
\def\height{5}
\def\ox{\fpeval{\width /2}}
\def\oy{\fpeval{\height /2}}

\tiny
\path [use as bounding box] (0,0) rectangle (\width,\height);

% SHAPE
\filldraw [line width=0.5pt, fill=orange] (\ox,\oy)
	+(-1,-1) node[draw, fill=black, circle, inner sep=1pt] {} node[below left] {3} --
	+(1,-1) node[draw, fill=black, circle, inner sep=1pt] {} node[below right] {2} --
	+(1,1) node[draw, fill=black, circle, inner sep=1pt] {} node[above right] {1} --
	+(-1,1) node[draw, fill=black, circle, inner sep=1pt] {} node[above left] {0} --
	cycle;

% PORTS
\draw [line width=2pt] (\ox,\oy) ++(-1,0) +(0,-1) -- +(0,1);
\draw [line width=2pt] (\ox,\oy) ++(0,1) +(-1,0) -- +(1,0);
\draw [line width=2pt] (\ox,\oy) ++(1,0) +(0,-1) -- +(0,1);
\draw [line width=2pt] (\ox,\oy) ++(0,-1) +(-0.5,0) -- +(0.5,0);

% MESH
\draw [line width=0.5pt] (\ox,\oy) ++(0,-1) +(-2,0) -- +(2,0);
\draw [line width=0.5pt] (\ox,\oy) ++(0,1) +(-2,0) -- +(2,0);
\draw [line width=0.5pt] (\ox,\oy) ++(-1,0) +(0,-1.5) -- +(0,2);
\draw [line width=0.5pt] (\ox,\oy) ++(1,0) +(0,-1.5) -- +(0,2);
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(-1,0) -- +(-2.5pt,0) node[left] {I1};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(0,1) -- +(0,2.5pt) node[above] {I2};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(1,0) -- +(2.5pt,0) node[right] {I3};
\path [tips, -{Stealth[length=5pt]}](\ox,\oy) ++(0,-1) -- +(0,-2.5pt) node[below] {I4};

% CONDITION
\draw (\ox,\oy) ++(0,-2) node {\footnotesize\textbf{W1 == W3 || W2 == W4}};

\end{tikzpicture}
\end{document}
